package cn.hdu.liang.factory.pizzas;

public class PizzaTestDrive {
 
	public static void main(String[] args) {
		SimplePizzaFactory factory = new SimplePizzaFactory();
		PizzaStore store = new PizzaStore(factory);

        Pizza pizza = store.orderPizza("cheese");
        System.out.println("我要点的是 " + pizza.getName() + "\n");
        System.out.println(pizza);

        System.out.println();
        System.out.println();

        pizza = store.orderPizza("veggie");
		System.out.println("我要点的是 " + pizza.getName() + "\n");
		System.out.println(pizza);
	}
}
